package cn.yudao.ymcc.feign;

import cn.yudao.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

@Component
@FeignClient(value = "service-media", fallbackFactory = MediaFileFeignFallbackFactory.class)
public interface MediaFileFeign {

    @RequestMapping(value = "/mediaFile/mediaFile/{courseId}",method = RequestMethod.GET)
    JSONResult loadMediaByCourseId(@PathVariable("courseId")Long courseId);

    @RequestMapping(value = "/mediaFile/getMediaById/{id}",method = RequestMethod.GET)
    JSONResult getMediaById(@PathVariable("id")Long id);



}
